import json

from config import BASE_DIR


#定义工具函数
def read_json_file(filename):
    with open(filename,"r",encoding="utf8") as f:
        json_data=json.load(f)
        login_list=[]
        for data in json_data:
            tmp=tuple(data.values())
            login_list.append(tmp)
        return login_list

if __name__ == '__main__':
   resp = read_json_file(BASE_DIR + "/data/json_data.json")
   print(resp)